package com.sixiaojie.flink.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

@Data
@Entity
public class Logistics {
    /** 物流记录ID */
    @Id
    private String id;

    /** 订单ID */
    private String orderId;

    /** 物流状态：PROCESSING,PACKAGED,SHIPPED,IN_TRANSIT,DELIVERED,RETURNED */
    private String status;

    /** 当前位置 */
    private String location;

    /** 发货时间 */
    private Date shippingTime;

    /** 预计送达时间 */
    private Date estimatedDelivery;

    /** 实际送达时间 */
    private Date actualDelivery;

    /** 创建时间 */
    private Date createdAt = new Date();

    /** 更新时间 */
    private Date updatedAt = new Date();
}